package de.ret_world.openrpgstudio.mapeditor;

import org.java.plugin.Plugin;

/**
 * A MapToolPlugin has a use-method which is called when the tool is activated and used.
 *
 * @author Emu
 */
public abstract class MapToolPlugin extends Plugin {

    public static final int CLICKED=0;
    public static final int STARTDRAG=1;
    public static final int ENDDRAG=2;
    
    protected TileSetWidget tileSetWidget;
    protected MapEditorWidget mapEditorWidget;

    public MapToolPlugin(TileSetWidget tileSetWidget, MapEditorWidget mapEditorWidget) {
        this.tileSetWidget = tileSetWidget;
        this.mapEditorWidget = mapEditorWidget;
    }

    @Override
    protected void doStart() throws Exception {
    }

    @Override
    protected void doStop() throws Exception {
    }

    public abstract void activated();
    
    public abstract void use(int x, int y, int TYPE);
    
    public abstract void hover(int x, int y);

    public abstract String activeText();

    public abstract String inactiveText();
}
